import { defineStore } from "pinia";

export const useEditOstInfo = defineStore("editOstInfo", {
  state: () => ({
    editOstInfo: {} as any
  }),
  getters: {
    getEditOstInfo: state => {
      return state.editOstInfo;
    }
  },
  actions: {
    setBillInfo(editOstInfo: any) {
      const that = this;
      that.editOstInfo = editOstInfo;
    },
    removeEditOstInfo() {
      const that = this;
      that.editOstInfo = {} as any;
    }
  }
});
